package org.smile.homework01.paladin.parking;

public class ParkingUnits {

    String size;
    int status;
    String name;
    String namePlate;
    double price;
    double amount;
    double amountNow;

    Cars car;
    public ParkingUnits(int i,int j) {
        this.name = i + "行" + j + "列";
        int s = (int)(Math.random()*10);
        if(s%2==0){
            this.size = "大";
            this.price = 10;
        }else{
            this.size = "小";
            this.price = 5;
        }
        this.status = 0;
        this.namePlate = "";
        this.amount = 0;
        this.car = null;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public double getAmountNow() {
        return amountNow;
    }

    public void setAmountNow(double amountNow) {
        this.amountNow = amountNow;
    }

    public String getNamePlate() {
        return namePlate;
    }

    public void setNamePlate(String namePlate) {
        this.namePlate = namePlate;
    }

    public int getUsedTime() {
        return usedTime;
    }

    public void setUsedTime(int usedTime) {
        this.usedTime = usedTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Cars getCar() {
        return car;
    }

    public void setCar(Cars car) {
        this.car = car;
    }

    int usedTime;
}
